package edu.stanford.prpl.api;

import java.net.URI;

public interface SourceURIMapper {

	void addHandler(URI baseUri, SourceURIHandler handler);

	SourceURIHandler removeHandler(URI baseURI);

	boolean hasReader(String sourceURI);

	boolean hasReader(URI sourceURI);

	Reader getReader(URI sourceURI);

	Reader getReader(String sourceURI);

	boolean hasWriter(String sourceURI);

	boolean hasWriter(URI sourceURI);

	SourceURIHandler getHandler(URI sourceURI, boolean isWrite);

	Writer getWriter(URI sourceURI);

	Writer getWriter(String sourceURI);

}
